package com.ruoyi.sys.vehile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sys.vehile.mapper.TbRecordChargingMapper;
import com.ruoyi.sys.vehile.domain.TbRecordCharging;
import com.ruoyi.sys.vehile.service.ITbRecordChargingService;

/**
 * 记录充电Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class TbRecordChargingServiceImpl implements ITbRecordChargingService
{
    @Autowired
    private TbRecordChargingMapper tbRecordChargingMapper;

    /**
     * 查询记录充电
     *
     * @param rcId 记录充电主键
     * @return 记录充电
     */
    @Override
    public TbRecordCharging selectTbRecordChargingByRcId(Long rcId)
    {
        return tbRecordChargingMapper.selectTbRecordChargingByRcId(rcId);
    }

    /**
     * 查询记录充电列表
     *
     * @param tbRecordCharging 记录充电
     * @return 记录充电
     */
    @Override
    public List<TbRecordCharging> selectTbRecordChargingList(TbRecordCharging tbRecordCharging)
    {
        return tbRecordChargingMapper.selectTbRecordChargingList(tbRecordCharging);
    }

    /**
     * 新增记录充电
     *
     * @param tbRecordCharging 记录充电
     * @return 结果
     */
    @Override
    public int insertTbRecordCharging(TbRecordCharging tbRecordCharging)
    {
        return tbRecordChargingMapper.insertTbRecordCharging(tbRecordCharging);
    }

    /**
     * 修改记录充电
     *
     * @param tbRecordCharging 记录充电
     * @return 结果
     */
    @Override
    public int updateTbRecordCharging(TbRecordCharging tbRecordCharging)
    {
        return tbRecordChargingMapper.updateTbRecordCharging(tbRecordCharging);
    }

    /**
     * 批量删除记录充电
     *
     * @param rcIds 需要删除的记录充电主键
     * @return 结果
     */
    @Override
    public int deleteTbRecordChargingByRcIds(Long[] rcIds)
    {
        return tbRecordChargingMapper.deleteTbRecordChargingByRcIds(rcIds);
    }

    /**
     * 删除记录充电信息
     *
     * @param rcId 记录充电主键
     * @return 结果
     */
    @Override
    public int deleteTbRecordChargingByRcId(Long rcId)
    {
        return tbRecordChargingMapper.deleteTbRecordChargingByRcId(rcId);
    }
}
